@extends('Admin.layout.layout')
 @section('title')
    <title>栏目添加</title>
    @show
@section('con')
<div class="row"> 
   <div class="col-lg-12"> 
    <h1 class="page-header">添加栏目</h1> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
  <div class="row"> 
   <div class="col-lg-12"> 
    <div class="panel panel-default"> 
     <div class="panel-heading">
      
     </div> 
     <div class="row">
      
     </div> 


     <div class="panel-body"> 
      <div class="row col-xd-4 col-xd-offset-4"> 
       <div class="col-md-6 col-md-offset-3">
      
       <div class="col-md-6 col-md-offset-3">
      
        <form role="form" action="{{url('/admin/type/insert')}}" method="post"> 
        <div class="form-group">
        <label>分类</label>
        <select class="form-control" name="pid">
            <option value="0">顶级分类</option>
            @foreach($cates as $k =>$v)
            <option value="{{$v->id}}">{{$v->name}}</option>

        	@endforeach

        </select>
    	</div>
         <div class="form-group"> 
          <label>栏目名称</label> 
          <input class="form-control" name="name" /> 
         </div class="row col-md-6 col-offset-3"> 
         <button class="btn btn-success" type="submit">确定</button>
         {{csrf_field()}}
         
       </form>
         <div class="form-group"> 
         </div>  
       <!-- /.col-lg-6 (nested) --> 
       </div>
       </div>
      </div> 
      <!-- /.row (nested) --> 
     </div> 
     <!-- /.panel-body --> 
    </div> 
    <!-- /.panel --> 
   </div> 
   <!-- /.col-lg-12 --> 
  </div> 
  <!-- /.row --> 
           


@endsection